﻿using System;
using System.Collections.Generic;

namespace Route
{
    // the classical story of a leg (of a journey) with its series of ways, the direction they were taken and their start and end points
    [Serializable()]
    public class Leg
    {
        private string _description;
        private readonly List<Trek> _treks = new List<Trek>();

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public List<Trek> Treks
        {
            get { return _treks; }
        }

        public void AddTrek(Trek t)
        {
            Treks.Add(t);
        }
    }
}
